home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / motdm10.zip / MOTDM.TXT < prev   
Text File  |  1997-05-22  |  5KB  |  115 lines

  1. ********************************************************
  2. *   Message Of The Day Mover v1.0 by Lawrence Goetz    *
  3. ********************************************************
  4.  
  5. MOTDM is Freeware!
  6.  
  7. Individuals may freely pass this onto their friends and are encouraged to
  8. upload it to bulletin boards or ftp sites, provided all the files are
  9. included and unmodified.
  10.  
  11. If you wish to include this in a cd collection or any other collection
  12. of freeware or shareware, please contact me for permission via e-mail at:
  13. goetz@dorsai.org
  14.  
  15. -------------------------------------------------------------------------------
  16. Description:
  17. MOTDM will go though a list of messages and copy the current "message of the
  18. day" to a location you specify. You can use this on networks or anywhere you
  19. need to cycle though on a timely basis for various messages. It can either
  20. rotate on a daily basis, or each time you run it, depending on the command
  21. line argument you pass to it. Works in Windows 95 or DOS. Supports long
  22. file names.
  23. -------------------------------------------------------------------------------
  24. Here is how you use MOTDM:
  25.  
  26. motdm location destination max
  27.  
  28. OR
  29.  
  30. motdm location destination max r
  31.  
  32. r means rotate no matter what the current date is. Without the r it will
  33. only change the message once a each day it is ran.
  34.  
  35. Place this line in your autoexec.bat file or in another batch file that
  36. you call on a daily or timely basis.
  37.  
  38. For example:
  39. motdm c:\motd\messages c:\motd 25
  40. This will copy the current message of the day from c:\motd\messages to
  41. c:\motd, and there are 25 messages in total in the messages directory.
  42.  
  43. Note that the path should not end with a \ . So if the files are in
  44. c:\motd\messages, don't write c:\motd\messages\ otherwise things will go
  45. wrong, since the program adds a \ to the end of the directories given.
  46. Same goes for the destination directory. Also note that if you wish to
  47. send it to the root dir, like c:\, leave off the \ as well and write c: .
  48.  
  49. The messages in the directory of messages need to be named in the following
  50. fashion.
  51. mesx.txt - where x in mesx is the number of the message.
  52. So if you have 3 messages, they would be numbered.
  53. mes1.txt
  54. mes2.txt
  55. mes3.txt
  56. -------------------------------------------------------------------------------
  57. In DOS you can have up to 99,999 messages, due to the 8 letters of the file
  58. name in DOS. In Windows 95 you can have over 4 billion messages because
  59. I used unsigned long int for the messaging number. In either case it should
  60. provide more than an adequate amount of messages.
  61.  
  62. The message of the day is copied to the directory you specified in the
  63. command line argument and is named motd.txt.
  64.  
  65. It will create an motdm.ini in the directory of the message files. The
  66. first line of the file contains the number of the last message read.
  67. If you want to start at another value for some reason you can edit the
  68. file and write the number of the LAST file read, since it increments this
  69. number before copying. The other two lines are the day and month that it
  70. last rotated a file.
  71.  
  72. If the last message was mes10.txt and for some reason you want to skip to
  73. mes25.txt you can edit the ini file to have 24 as it's value. This is
  74. because the program increments before copying.
  75.  
  76. The incrementing is done each time you run the motdm program. Placing 0
  77. in the ini file will reset the counter. If the ini value becomes the max
  78. file or higher, then it is set to 0.
  79.  
  80. The motdm.ini file is stored in the directory that the messages are in. This
  81. way you can use motdm to handle different message listings.
  82. -------------------------------------------------------------------------------
  83. After the message has been rotated you can use your favorite text file
  84. displayer to display the message or the following commands in a batch file on a
  85. DOS or Windows 95 system:
  86.  
  87. type motd.txt
  88. pause
  89. -------------------------------------------------------------------------------
  90. Various uses:
  91.  
  92. Rotation of inspirational messages.
  93. Rotation of computer tips.
  94. Rotation of jokes.
  95. Daily events.
  96. Even rotate WAV, JPG, HTML, or any kind of files. *
  97. The uses are endless.
  98.  
  99. * You can use MOTDM to rotate any files on a daily basis:
  100. Rename your input files using the mesx.txt convention as if they are messages.
  101. Then you can rename the output file motd.txt to the file type name you want.
  102. -------------------------------------------------------------------------------
  103. If you have a question or comment about MOTDM please e-mail me at:
  104. goetz@dorsai.org
  105.  
  106. Enjoy!
  107.  
  108. I hope you find this program to be of some use to you.
  109. If you find it useful, please send me e-mail at:
  110. goetz@dorsai.org
  111.  
  112. Visit my web page at:
  113. http://pages.prodigy.com/goetz
  114. -------------------------------------------------------------------------------
  115.